Themes can be selected using several different rules, in this order:
- The theme attribute on the specific tag
- The theme attribute on a tag's surrounding form tag
- The page-scoped attribute named theme
- The request-scoped attribute named theme
- The session-scoped attribute named theme
- The application-scoped attribute named theme
- The webwork.ui.theme property in webwork.properties (defaults to xhtml)
A few important concepts come from this order:
- You can override an entire form's theme by only changing the theme attribute for the forum. This makes it easy to use the ajax theme in just a few select places.
- You can change the theme for a user's session. This might be useful if users can customize their look and feel.
- If you want to change the theme for the entire application, adjust your webwork.properties.
|